from models import db, BaseModel


class DictItem(BaseModel):
    """
    字典项模型
    """
    __tablename__ = "sys_dict_item"
    __table_args__ = ({"comment": "字典项"})
    dictId = db.Column(db.BigInteger, name="dict_id", unique=False, nullable=True, comment="字典ID")
    name = db.Column(db.String, name="name", unique=False, nullable=True, comment="字典项名称")
    code = db.Column(db.String, name="code", unique=False, nullable=True, comment="唯一编码")
    sort = db.Column(db.BigInteger, name="sort", unique=False, nullable=True, comment="排序")
    enabled = db.Column(db.Integer, name="enabled", unique=False, nullable=True, comment="是否启用")
    remark = db.Column(db.String, name="remark", unique=False, nullable=True, comment="备注")
